#include <plugin/util/AbstractPrincipal.h>

namespace antu
{
namespace plugin
{
AbstractPrincipal::AbstractPrincipal()
{
}

AbstractPrincipal::AbstractPrincipal(const QString &credential)
    : m_sCredential(credential)
{

}

AbstractPrincipal::AbstractPrincipal(const QString &credential, const QString &securityToken)
    : m_sCredential(credential),
      m_sSecurityToken(securityToken)
{

}

AbstractPrincipal::~AbstractPrincipal()
{

}

UsernamePasswordPrincipal::UsernamePasswordPrincipal()
    : AbstractPrincipal()
{

}

UsernamePasswordPrincipal::UsernamePasswordPrincipal(const QString &credential)
    : AbstractPrincipal(credential)
{

}

UsernamePasswordPrincipal::UsernamePasswordPrincipal(const QString &credential, const QString &password)
    : AbstractPrincipal(credential, password)
{

}

bool UsernamePasswordPrincipal::hasPermission(const QString &/*domain*/, const QString &/*action*/, const QString &/*item*/)
{
    return true;
}

}
}

